﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Diagnostics;

namespace WSIMServices.model
{
    public class Log
    {
        private static TraceSwitch traceSwitch;

        static Log(){
            traceSwitch=new TraceSwitch("WSIM_Log","WSInstant Messaging Loggin System");
        }


        public static void Debug(string message){
            Trace.WriteLineIf(traceSwitch.TraceVerbose,message);
        }

        public static void Warning(string message){
            Trace.WriteLineIf(traceSwitch.TraceWarning,message);
        }

        public static void Info(string message){
            Trace.WriteLineIf(traceSwitch.TraceInfo,message);
        }

        public static void Error(string message){
            Trace.WriteLineIf(traceSwitch.TraceError,message);
        }
    }
}
